define(()=>{
    return function(goods, res, tbody){
        let str = "";
        res.forEach(val1=>{
            goods.forEach(val2=>{
                if(val1.proId === val2.id){
                    str += `<tr index="${val2.id}">
                                <td><input type="checkbox"></td>
                                <td><img src="${val1.img}" alt=""></td>
                                <td>${val1.proName}</td>
                                <td><input type="number" class="setNum" value="${val2.num}"></td>
                                <td>${val1.price}</td>
                                <td>${val2.num * val1.price}</td>
                                <td class="del">删除</td>
                            </tr>`
                }
            })
        })
        tbody.html(str);
    }
})